// https://nuxt.com/docs/api/configuration/nuxt-config
import { defineNuxtConfig } from "nuxt/config";
const path = require("path");
function resolve(dir: any) {
  return path.join(__dirname, dir);
}

export default defineNuxtConfig({
  // 修改app入口文件位置
  srcDir: "src/",
  routeRules: {
    "/About": { static: true },
  },
  // 全局引入css
  css: ["element-plus/dist/index.css", "@/assets/css/global.less"],
  // 别名设置
  alias: {
    "@": resolve("src"),
    assets: resolve("src/assets"),
    components: resolve("src/components"),
  },
  app: {
    head: {
      charset: "utf-16",
      viewport: "width=device-width,initial-scale=1.0",
      title: "小豪前端",
      meta: [
        { name: "baidu-site-verification", content: "codeva-rbFjuBAqvb" },
        { name: "keywords", content: "个人博客,小豪前端,前端,技术,WEB,blog,BLOG,搭建博客,前端技术,VUE博客," },
        { name: "description", content: "分享前端技术，每天实现一个小超越" },
        { name: "robots", content: "博客, 前端, blog, 个人博客, 小豪前端, web, VUE, React" },
        { name: "twitter:title", content: "小豪前端" },
        { property: "og:title", content: "小豪前端" },
        { property: "og:site_name", content: "小豪前端" },
        { property: "og:description", content: "小豪前端" },

        
      ],
      link: [{ rel: "icon", type: "image/x-icon", href: "/favicon.ico" }],
    },
  },
});
